package com.ruoyi.project.tool.swagger.UserController;

import com.ruoyi.framework.aspectj.lang.annotation.SignatureValidation;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.domain.SysType;
import com.ruoyi.project.system.service.ISysTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mobileUser/search/")
public class UserSearchController {

    @Autowired
    private ISysTypeService sysTypeService;

    // 搜索服务类型——> 根据名称
    @SignatureValidation
    @PostMapping("queryTypeAll")
    public AjaxResult queryType(@RequestBody SysType sysType){

        return AjaxResult.success(sysTypeService.queryAllType(sysType));
    }
}
